/*
 * @Author: czy
 * @Date: 2021-04-24 08:26:11
 * @LastEditTime: 2021-05-20 22:54:53
 */
#include "dev/interface/io.h"
#include "dev/interface/irq.h"

/**
 * @description: Initialization PIC.
 */
void init8259(void)
{
    outb(0x20, 0x11);
    outb(0x21, 0x20);
    outb(0x21, 0x04);
    outb(0x21, 0x3);
    enable_interrupt();
}

void disable8259(void)
{
    disable_interrupt();
}

void enable8259(void)
{
    init8259();
}